package com.jack.payment.entity.filter;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "公共基础分页对象字段")
public class CommonPaging implements Serializable {
    @Schema(description = "本次请求多少条数据")
    private Integer count;
    @Schema(description = "从第几条开始")
    private Integer page;
    @Schema(description = "排序 0: 降序 1: 升序")
    private Integer sort;
    @Schema(description = "是否启用")
    private Integer enable;
    @Schema(description = "用户id")
    private String userId;
    @Schema(description = "排序字段, 仅后台赋值, 如有需要 可改成list, 多字段赋值")
    private String column;



    private String filterStartTime;
    private String filterEndTime;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Schema(description = "加上时间的筛选")
    public static class TimeFilter extends  CommonPaging implements Serializable {
        @Schema(description = "开始时间")
        private String filterStartTime;
        @Schema(description = "结束时间")
        private String filterEndTime;
    }

}
